package com.haiyan.demo05_两个对象的内存图;

public class Test {
    public static void main(String[] args) {
        Student stu1=new Student();
        stu1.name="张三";
        stu1.age=18;
        System.out.println(stu1.name+","+stu1.age);

        Student stu2=new Student();
        stu2.name="李四";
        stu2.age=19;
        System.out.println(stu2.name+","+stu2.age);
    }
}
